package org.example.dao;

import org.apache.ibatis.annotations.Param;
import org.example.domain.Student;

import java.util.List;

public interface StudentDao {
    /*查询所有数据*/
    List<Student> selectStudents();

    List<Student> selectIf(@Param("personName") String name,
                           @Param("personAge") int age);

    List<Student> selectWhere(@Param("personName") String name,
                              @Param("personAge") int age);

    List<Student> selectForeach(List<Integer> integerList);
}